class OrderMailer < ActionMailer::Base
  

  def confirm(order)
    return unless order.user.email
    subject    'TT小站提示您'
    recipients order.user.email
    from       ['TT小站 <service@ttstation.net>']
    sent_on    Time.now
    content_type 'text/html'
    
    body       :order => order
  end

  def sent(order)
    return unless order.user.email
    subject    'TT小站提示您'
    recipients order.user.email
    from       ['TT小站 <service@ttstation.net>']
    sent_on    Time.now
    content_type 'text/html'

    body       :order => order
  end

  def finish(order)
    return unless order.user.email
    subject    'TT小站提示您'
    recipients order.user.email
    from       ['TT小站 <service@ttstation.net>']
    sent_on    Time.now
    content_type 'text/html'

    body       :order => order
  end

end
